package com.fezz.boot.rpc.client;

import com.fezz.boot.rpc.api.OrderService;
import com.fezz.boot.rpc.proxy.RpcProxy;
import lombok.extern.log4j.Log4j2;

/**
 * 客户端调用
 *
 * @author muyun
 * @version 1.0.0
 * @since 2020/7/6
 */
@Log4j2
public class RpcClient {

    public static void main(String[] args) {
        OrderService orderService = RpcProxy.create(OrderService.class);
        String orderVOStr = orderService.getOrderById(1L);
        log.info("response : " + orderVOStr);
    }
}
